package com.atguigu.admin.service;


import com.atguigu.admin.bean.Admin;
import com.atguigu.admin.dao.AdminMapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class AdminService {


    @Autowired
    private AdminMapper adminMapper;


    public Admin getById(Integer id){
        return adminMapper.getById(id);
    }


   public List<Admin> list(){
        return adminMapper.list();
   }


   public void deleteById(Integer id){
        adminMapper.delet(id);
   }


}
